Skip to content

fix: add keepalive, idle timeout, and session cleanup to gateway#223

Merged
x032205 merged 6 commits intomainfrom
PAM-205
May 8, 2026
Merged

fix: add keepalive, idle timeout, and session cleanup to gateway#223
x032205 merged 6 commits intomainfrom
PAM-205

Conversation

@x032205
Copy link
Copy Markdown
Member

@x032205 x032205 commented May 8, 2026

Description 📣

Add keepalive, idle timeout, and session cleanup to gateway

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

  1. Connect SSH through the gateway, kill -STOP the client process, watch gateway logs for "SSH keepalive to client failed" within ~45s, confirm session flips to inactive in the UI
  2. kill -STOP the relay process while a session is active, watch gateway logs for "Relay SSH keepalive failed" within ~45s, then kill -CONT the relay and confirm the gateway reconnects
  3. Connect SSH through the gateway, leave it idle for 30+ minutes (or temporarily set pamIdleTimeout to 2 * time.Minute in gateway.go:278), watch for "Reaping idle PAM session", confirm session flips to inactive
  4. Connect SSH through the gateway, type commands for a few minutes, confirm the session stays alive and the reaper does not fire

@x032205 x032205 requested a review from bernie-g May 8, 2026 08:10
@linear
Copy link
Copy Markdown

linear Bot commented May 8, 2026

PAM-205

@infisical-review-police
Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cli-223-fix-add-keepalive-idle-timeout-and-session-cleanup-to-gateway

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 71aba63cc3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/pam/pam-proxy.go Outdated
Comment thread packages/pam/handlers/ssh/proxy.go
Comment thread packages/pam/pam-proxy.go Outdated
@x032205 x032205 merged commit 171b125 into main May 8, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants